<?php

if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Dayrui Website Management System
 *
 * @since		version 2.5.0
 * @author		Dayrui <dayrui@gmail.com>
 * @license     http://www.dayrui.com/license
 * @copyright   Copyright (c) 2011 - 9999, Dayrui.Com, Inc.
 */

if (!defined('DR_ROUTER_PATH')) {
    exit('未定义的规则，请检查config/rewrite.php规则的有效性');
}

class Tag extends M_Controller {

    /**
     * 构造函数
     */
    public function __construct() {
        parent::__construct();
    }

    /**
     * 内容
     */
    public function index() {
        $id = (int)$this->input->get('id');
        $page = max(1, (int)$this->input->get('page'));
        $body = dr_catcher_data(SITE_URL.DR_ROUTER_PATH.'/index.php?c=tag&id='.$id.'&page='.$page);
        echo $body;exit;
    }
}